<template>
  <div class="account-manage">
    <div class="manage-item">
      <user-member />
    </div>
    <div class="manage-item">
      <security-manage />
    </div>
  </div>
</template>

<script lang="ts" setup>
import { computed } from 'vue'
import UserMember from "./user-member.vue";
import SecurityManage from "./security-manage.vue";
import { reportInfoApi } from "@/xz-fn";
import { userAppStore } from '@/stores/user'
import { systemAppStore } from '@/stores/system';

const showUsserMenber = computed(() => {
  if (systemAppStore().appInfo.merchant !== 'lx') {
    return true
  }

  return !!userAppStore().lenovoToken
})
reportInfoApi(64);
</script>

<style lang="scss" scoped>
.account-manage {
  padding: 30px;
}
.manage-item {
  background: rgba(76, 84, 123, 0.05);
  border-radius: 10px;
  padding: 20px 24px;
  & + .manage-item {
    margin-top: 16px;
  }
  &:deep(.manage-title) {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--el-border-color-light);
    span {
      flex: 1;
      font-size: 16px;
      font-weight: bold;
    }
    .manage-title-right {
      font-size: 12px;
      cursor: pointer;
      &:hover {
        opacity: 0.8;
        text-decoration: underline;
      }
    }
  }
}
</style>
